<?php defined('ByShopWWI') or exit('Access Invalid!');?>

<?php

$is_check = false;

?>
<div class="wrap">
  <div class="alert alert-success">
    <h4>操作提示：</h4>
    <ul>
	<?php if($is_check){ ?>
	
		<li>身份信息已认证。</li>
		
	<?php }else{ ?>
		
		<li>请填写您的身份证上的名字与身份证号码....</li>
		
	<?php }?>
      
    </ul>
  </div>
  <div class="ncm-default-form">
  <?php if($is_check){ ?>
	

		
	<?php }else{ ?>
		
		 <form method="post" id="auth_form" action="index.php">
		
	<?php }?>
   
      <input type="hidden" name="form_submit" value="ok" />
      <input type="hidden" name="act" value="member_security" />
      <input type="hidden" name="op" value="id_card" />

      <dl>
        <dt><i class="required">*</i>填写真实姓名：</dt>
        <dd>
          <input type="text" class="text"  maxlength="6" value="<?php echo $output['member_info']['member_truename'];?>" name="member_truename" size="30" id="truename" autocomplete="off" 
		  <?php if($is_check){ ?>  disabled="disabled" <?php } ?>
		  />
          <label for="email" generated="true" class="error"></label>
        </dd>
      </dl>
	  <dl>
        <dt><i class="required">*</i>填写身份证号：</dt>
        <dd>
          <input type="text" class="text" value="<?php echo $output['member_info']['member_idcard'];?>" name="member_idcard" size="30" id="idcard" autocomplete="off" <?php if($is_check){ ?>  disabled="disabled" <?php } ?>/>
          <label for="email" generated="true" class="error"></label>
        </dd>
      </dl>

      <dl class="bottom">
        <dt>&nbsp;</dt>
        <dd>
		<label class="submit-border">
		<?php if($is_check){ ?>
	
		<a href="#" class="ncbtn ncbtn-mint" target="_self" onclick="history.go(-1)">返回</a>
		
		<?php }else{ ?>
			
			
				<input type="button" class="submit" value="确认提交" />
			  
			
		<?php }?>
		</label>
        </dd>
      </dl>

	<?php if($is_check){ ?>
	
				
	<?php }else{ ?>
		
		 </form>
		
	<?php }?>
  </div>
</div>
<script type="text/javascript">
$(function(){
	$('.submit').on('click',function(e){
		e.preventDefault()
		var l = $("#idcard").val().length
		if(l==15 || l==18){
			$('#auth_form').submit();
		}else{
			showDialog("身份证号码数位不正确！请重新填写。", 'error','','','','','','','','',2);
		}
	});
	
});
</script> 
